//
//  TitleView.h
//  Project_A Gary
//
//  Created by mac on 16/3/22.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
@class TitleView;

@protocol TitleViewDelegate <NSObject>

-(void)titleView:(TitleView *)title selectedIndexChanged:(NSInteger)index;

@end
@interface TitleView : UIScrollView



@property(nonatomic, retain)NSArray *titleArray;/**< 保存标题数组 */
@property(nonatomic, assign)NSUInteger selected;/**< 选中标题下标 */
@property(nonatomic, assign)id<TitleViewDelegate>delegates;

+ (TitleView *)creatTitleView;
- (void) setSelectedIndex:(NSUInteger)selectedIndex;

@end
